package trastienda.service;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import trastienda.dao.RolDAO;
import trastienda.excepcion.DAOExcepcion;
import trastienda.modelo.Rol;

@Service
public class RolServiceImpl implements RolService{
	
	@Autowired
	private RolDAO rolDAO;
	
	
	
	public RolDAO getRolDAO() {
		return rolDAO;
	}
	public void setRolDAO(RolDAO rolDAO) {
		this.rolDAO = rolDAO;
	}



	public Collection<Rol> listarTodos() throws DAOExcepcion {
		return rolDAO.listarTodos();
	}
	
	

}
